import com.study.model.User;
import com.study.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("dubbo-comsumer.xml");
        UserService ser = applicationContext.getBean(UserService.class);
        User userById = ser.getUserById((long) 11);
        System.out.println(userById.getName());
    }
}
